package com.example.bbs.controller;


import com.example.bbs.entity.Disease;
import com.example.bbs.entity.DiseaseTag;
import com.example.bbs.service.DiseaseTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author jiaziyun
 * @since 2021-04-30
 */
@Controller
@RequestMapping("/disease-tag")
public class DiseaseTagController {

    @Autowired
    private DiseaseTagService diseaseTagService;

    @RequestMapping("/selectalldiseasetag")
    @ResponseBody
    public List<DiseaseTag> selectAllDisease() {
        return diseaseTagService.selectAllDisease();
    }

}
